﻿using Sys.Api;
using Sys.Core.Dri;
using Sys.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_dri_teacher_Edit : PageBase
{
    public DriTeacher model { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["id"];

            if (string.IsNullOrEmpty(id))
            {
                model = new DriTeacher();

                model.Num = TeacherBll.I.NewNum;  //产生新的流水号
                model.SignUpDate = DateTime.Now.ToString("yyyy-MM-dd");

                //model.Top = false;
                //model.Img = string.Empty;
            }
            else { model = TeacherBll.I.GetByKey(id); }
        }
    }
}